﻿@model List<SimCMS.Model.Simadminrole>
<form id="pagerForm" method="post" action="/Admin/AdminList">
<input type="hidden" name="status" value="${param.status}">
<input type="hidden" name="keywords" value="${param.keywords}" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
<input type="hidden" name="orderField" value="${param.orderField}" />
</form>
<div class="pageContent">
    <div>
        <div layouth="1" style="float: left; display: block; overflow: auto; width: 300px;
            border: solid 1px #CCC; line-height: 21px; background: #fff">
            <div class="panelBar">
                <ul class="toolBar">
                    <li><a class="add" href="/Admin/RoleContent" target="dialog" mark="true"><span>添加</span></a></li>
                    <li><a class="delete" href="/Admin/AdminDelete/{sid_user}" target="ajaxTodo" title="确定要删除吗?">
                        <span>删除</span></a></li>
                    <li><a class="edit" href="/Admin/AdminContent/{sid_user}" target="dialog" mark="true">
                        <span>修改</span></a></li>
                    <li class="line">line</li>
                </ul>
            </div>
            <table class="table" width="100%" layouth="138">
                <thead>
                    <tr>
                        <th width="100">
                            角色名
                        </th>
                        <th width="120">
                            描述
                        </th>
                        <th width="80">
                            状态
                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var RoleModel in Model)
                    {
                        <tr target="sid_user" rel="@RoleModel.Id">
                            <td align="center">
                                <a href="/Admin/MenuList/@RoleModel.Id" target="ajax" rel="jbsxBox">@RoleModel.RoleName</a>
                            </td>
                            <td align="center">@RoleModel.Description
                            </td>
                            <td align="center">@SimCMS.Common.CommonHelper.IsStatus(RoleModel.Disabled.Value)
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
            <div class="panelBar">
                <div class="pages">
                    <span>共 @(ViewBag.Total)
                条</span>
                </div>
            </div>
        </div>
        <div id="jbsxBox" class="unitBox" style="margin-left: 246px;">
            <!--#include virtual="/Admin/MenuList/1" -->
        </div>
    </div>
</div>
